#include<iostream>
#include"log.hpp"
#include"tcpserver.hpp"

int main(int argc,char*argv[])
{
    if(argc != 2)
    {
        //打印错误信息
    }
    logmodule::Consolelogstrategy();//开启控制台打印日志

    std::shared_ptr<Connection> conn = std::make_shared<listener>(std::stoi(argv[1]));
    std::unique_ptr<tcpserver> tcvr = std::make_unique<tcpserver>();
    tcvr->addconnection(conn);
    return 0;
}